<?php

namespace App\Listeners;

use App\Events\Event;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class EventListener
{
    /**
     * Create the event listener.
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Handle the event.
     * @param Event $event
     * @return void
     */
    public function handle(Event $event)
    {
        //事件被监听后的操作
        dump('事件被监听后的操作----' . $event->data);

        //下面写自己需要的业务逻辑
    }
}
